package com.example.erp.dto.permissionDTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
@JsonIgnoreProperties(value = {"orderBy"},allowSetters = true)
public class UserDTO {
    /**
     * 用户名称
     */
    private String name;
    /**
     * 用户标识
     */
    private String phone;
    /**
     * 用户状态
     */
    private Integer status;
    /**
     * 每页大小
     */
    private Integer pageSize;
    /**
     * 当前页码
     */
    private Integer pageNum;
    /**
     * 偏移
     */
    private Integer offset;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private List<LocalDateTime> createTime;
    private String orderBy;
}
